package com.north.light.libpermission.intercept;

import android.content.Context;

import com.north.light.libpermission.intercept.dialog.InterceptDialogCallback;

import java.io.Serializable;

/**
 * author:li
 * date:2022/8/20
 * desc:权限拦截器
 */
public interface PermissionIntercept extends Serializable {

    /**
     * 申请权限时的是否弹窗
     *
     * @return true 弹窗,false 不弹窗
     */
    boolean ensureDialog(Context context,InterceptDialogCallback interceptDialog) throws Exception;


}
